remove or annotate possibly-unused functions
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 10 Feb 2016 13:49:06 +0000 (14:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 10 Feb 2016 13:49:06 +0000 (14:49 +0100)
commite49cce6e514edab788160c3664dea97a03b266eb
treeaf9a3c7a74b9b1332844f3493e6e38244a858cac
parent70cbc38d774af77b6a05ffb2d8fb7e0a38025378
remove or annotate possibly-unused functions

Clang notices more unused functions than GCC.

 * sh_next_page() is only used at GUEST_PAGING_LEVELS=2, so remove it from the
   other guest level translation units
 * rcu_batch_after() is completely unused.
 * Various of the COMPAT() generated functions are used only for their
   BUILD_BUG_ON() properties.  Annotate them all as __maybe_used.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm/shadow/multi.c
xen/common/rcupdate.c
xen/include/xen/compat.h